/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commands;
import IA.*;
/**
 *
 * @author Jeremy
 */
public class CmdEndService extends Command {

    private Service _s;
    
    public CmdEndService(InformationAggregator ia, Service s) {
        super(ia);
        _s = s;
    }
    
    @Override
    public Object execute() {
        ia.getServiceCollection().ServiceFinished(_s);
        return null;
    }
    
}
